<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
    <meta name="description" content="Sign in">
    <meta name="author" content="Hone-too-young">
    <title>重邮失物招领检索登录</title>
    <!--top icon-->
    <link rel="shortcut icon" th:href="@{/ChongYouIcon.ico}" type="image/x-icon"/>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- custom styles for this template -->
    <link th:href="@{/css/signin.css}" rel="stylesheet">

</head>

<body class="text-center">

<div>
    <h1 class="vintage" th:text="#{login.title}">Lost And Found Internet</h1>
    <br>
    <form class="form-signin" th:action="@{/user/login}" method="post">
        <img class="mb-4" th:src="@{/img/ChongYouIcon2.ico}" alt="" width="80" height="80">
        <h1 class="h3 mb-3 font-weight-normal " th:text="#{login.tip}">Please sign in</h1>
        <p style="color: red" th:text="${msg}"></p>
        <p style="color: green" th:text="${msg2}"></p>
        <div>
            <label class="sr-only" for="username" >Username</label>
            <input type="text" class="form-control" th:placeholder="#{login.username}" required="" autofocus="" name="userName" id="username">
        </div>
        <div class="form-group">
            <label class="sr-only" for="password" >Password</label>
            <input type="password" class="form-control" th:placeholder="#{login.password}" required="" name="password" id="password">
        </div>

        <div class="checkbox mb-3">
            <label><input type="checkbox" value="remember-me" > [[#{login.remember}]]</label>
            <label>&nbsp;</label>
            <label><a th:href="@{/signup}" th:text="#{login.signup}"> Sign up right now!</a></label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit" >[[#{login.btn}]]</button>
        <p class="mt-5 mb-3 text-muted">2021-2022</p>
        <a class="btn btn-sm"  th:href="@{ /signin( l='zh_CN')}">中文</a>
        <a class="btn btn-sm" th:href="@{ /signin( l='en_US')}">English</a>
    </form>
</div>







</body>


</html>